package org.raphaello.core.objects;

import java.util.UUID;

import org.raphaello.Prototype.Raphaello;
import org.raphaello.core.jobs.ImageDrawer;
import org.raphaello.core.states.State;


public class Image extends VisibleObject{
	
	public Image(String id){
		super(id);
	
		// Adding the ColoredRectangleDrawer to the painting state of this
		State paintingState = getState(id + ".painting");
		ImageDrawer drawerJob = new ImageDrawer(UUID.randomUUID().toString()); 
		paintingState.addChild(drawerJob);
		
		Raphaello.mJobs.put(drawerJob.getId(), drawerJob);
	}
	
	
		
}
